package com.hue.gulimail.gulimailproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hue.common.utils.PageUtils;
import com.hue.gulimail.gulimailproduct.entity.AttrEntity;
import com.hue.gulimail.gulimailproduct.entity.AttrGroupEntity;
import com.hue.gulimail.gulimailproduct.vo.AttrGroupVo;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author yaofengqiao
 * @email 451737523@qq.com
 * @date 2021-08-12 16:24:48
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params,Integer catelogId);

    List<AttrEntity> getAttrRelation(Long attrgroupId);

    PageUtils getNoAttrRelation(Long attrgroupId,@RequestParam Map<String, Object> params);

    void attrgroupAttrRelation(List<Map<String,Long>> relations);

    void attrgroupAttrRelationDelete(List<Map<String, Long>> relations);

    List<AttrGroupEntity> catelogIdWithAttr(Long catelogId);
}

